8.4 MyID Operator Client advanced configuration

On the MyID web server, the OAuth2 authentication mechanism relies on the configuration of the URL that the end user will use to access the web server. The MyID server installation program sets this up when you install MyID:

However, there may be some circumstances under which you need to amend this setting after installation. In this case, you can edit the configuration files for both web services.

8.4.1 The rest.core web service configuration file

The appsettings.json file contains the settings for the rest.core web service, and is located in the following folder by default:

C:\Program Files\Intercede\MyID\rest.core\

The MyID:Auth:AuthServerUrl setting provides the URL of web.oauth2 web service. At runtime, the rest.core web service carries out a request to this URL to interact with the web.oauth2 service. If it cannot perform this request, there will be a 500 server error.

The URL must be resolvable on the web server, and https (TLS) must be used.

There are various cases why this might not be resolvable

Important: The URL settings are updated when you run the installation program. If you have made any manual changes to the appsettings.json file, these are overwritten by the values you provide in the installer.

8.4.2 The web.oauth2 web service configuration file

The appsettings.json file contains the settings for the web.oauth2 web service, and is located in the following folder by default:

C:\Program Files\Intercede\MyID\web.oauth2

In the Clients section, for the "ClientId": "myid.operatorclient", the RedirectUris setting contains a list of URLs. These are the URLs to which the oauth2 protocol is allowed to redirect back.

The list must contain an entry that represents the URL that the end user will use in the browser to reach the MyID Operator Client. If the URL does not match, when you attempt to sign in, you will see an error similar to:

Sorry, there was an error : unauthorized_client

Important: The URL settings are updated when you run the installation program. If you have made any manual changes to the appsettings.json file, these are overwritten by the values you provide in the installer.

8.4.3 Displaying images stored on the web server

By default, MyID stores images in the database. If your system has any images on the web server (for example, if you have an upgraded system, where previously-captured images are on the web server while new images are stored in the database), you must configure the rest.core web service with the image location to allow the MyID Operator Client to display the images that are stored on the web server.

Important: Do not switch your system to storing images on the web server if you are using the MyID Operator Client to capture images. The MyID Operator Client will experience errors if you attempt to capture images when your system is configured to store images on the web server.

Edit the appsettings.Production.json file, which is the override file for the appsettings.json file, and is located in the following folder by default:

C:\Program Files\Intercede\MyID\rest.core\

If you do not have an appsettings.Production.json file already, you must create one, containing the following:

{
  "MyID": {
    "UpimagesFolder": "",
  }
}

If you do have an existing appsettings.Production.json file, you must add the UpimagesFolder entry to the MyID section.

In the MyID section, change the UpimagesFolder entry to point to the directory that contains the images; for example:

"UpimagesFolder": "C:\\Program Files\\Intercede\\MyID\\Web\\WebPIV\\upimages",

Note: This is the default location; your system may have the images stored in a different location.

Make sure you escape all backslashes with backslashes, as in the example above.

Once you have saved the file, recycle the application pool to refresh the settings:

  1. On the MyID web server, in Internet Information Services (IIS) Manager, select Application Pools.
  2. Right-click the myid.rest.core.pool application pool, then from the pop-up menu click Recycle.

8.4.4 Changing the port

By default, the MyID Operator Client and its web service use port 8081. If you want to use a different port, after installing MyID and the MyID Client Service, you must edit configuration files on the client and on the web server.

Important: Back up your files before making any changes.

  1. On each client PC using the MyID Operator Client:

    1. Open the MyIDClientService.dll.config file in a text editor.

      This file is located in the MyID Client Service program folder. By default, this is:

      C:\Program Files (x86)\Intercede\MyIDClientService

    2. Locate the following line:

      <add key="WebSocketPort" value="8081"/>

    3. Change the value to the port you want to use.

      For example:

      <add key="WebSocketPort" value="6066"/>

    4. Save the configuration file.

  2. On the web server:

    1. Open the appSettings.js file in a text editor.

      This file is located in the Operator Client web folder; by default, this is:

      C:\Program Files\Intercede\MyID\OperatorClient

    2. Locate the following line:

      wsLocation: "ws://127.0.0.1:8081/"

    3. Change the port number in the wsLocation parameter to the port you want to use.

      For example:

      wsLocation: "ws://127.0.0.1:6066/"

    4. Open the appsettings.json file for the web.oauth2 web service in a text editor.

      This file is located in the web.oauth2 folder; by default, this is:

      C:\Program Files\Intercede\MyID\web.oauth2

    5. Locate the following line in the "ApiResources": "ssaclient" section:

      "port": 8081

    6. Change the port number to the port you want to use.

      For example:

      "port": 6066

  3. Reset the web server.

    1. On the MyID web server, in Internet Information Services (IIS) Manager, select Application Pools.
    2. Right-click the myid.rest.core.pool application pool, then from the pop-up menu click Recycle.
    3. Right-click the myid.web.oauth2.pool application pool, then from the pop-up menu click Recycle.
  4. On each client PC using the MyID Operator Client, restart the MyID Client Service app:

    1. Right-click the MyID Client Service icon in the task bar.

    2. From the pop-up menu, click Exit.

    3. Run the MyID Client Service App from the Windows Start menu.

Important: If you upgrade your MyID system, you must make these changes again.

8.4.5 Load balancing

The MyID Operator Client and the rest.core web service are stateless, and do not have any session affinity; however, the web.oauth2 web service does have state:

There are the following options for managing load balancing:

To configure session affinity and a shared signing key for your web.oauth2 servers:

  1. Run the following PowerShell script:

    $subject = "JWS Signer Certificate"
    $expiry = (Get-Date).AddYears(20)
    New-SelfSignedCertificate -Type Custom -subject $subject -notafter $expiry -KeyUsage DigitalSignature -KeyAlgorithm RSA -KeyLength 2048 -CertStoreLocation cert:\CurrentUser\My

    Note: This example uses a certificate with a lifetime of 20 years. The certificate must be replaced before it expires. You can set this to a length that suits your organization's needs by editing the $expiry line in the PowerShell script.

  2. Take a note of the certificate thumbprint that is produced by the script.

  3. Export the certificate as a PFX file:

    1. Prepare the following PowerShell script, making the appropriate substitutions:

      $CertPassword = ConvertTo-SecureString -String "pfxpassword" -Force -AsPlainText
      Export-PfxCertificate -Cert cert:\CurrentUser\My\CertThumbprint -FilePath jwtsigningkey.pfx -Password $CertPassword

      Set the following substitutions:

      • pfxpassword – Choose a strong PFX password. Make sure you take a note of this password.

      • CertThumbprint – Provide the certificate thumbprint generated above.

        Alternatively, you can retrieve the thumbprint by viewing the certificate.

      • jwtsigningkey.pfx – Specify where you want the file to be created.

        You must specify a path to which the user has write access.

    2. Run the PowerShell script.

      The script creates the PFX file.

      Important: You must keep the PFX file and its password safe and secure.

  4. On each web server:

    1. Log on as the MyID web services user.

      This is the user under which the web.oauth2 service runs.

    2. Copy the PFX file onto the server.

    3. At the Windows command prompt, run the following, providing the appropriate path and name for the PFX file:

      certutil –csp "Microsoft Software Key Storage Provider" -user –importpfx jwtsigningkey.pfx

    4. Add the thumbprint to the appsettings.Production.json file.

      This is the override file for the appsettings.json file, and is located in the following folder by default:

      C:\Program Files\Intercede\MyID\web.oauth2\

      If you do not have an appsettings.Production.json file already, you must create one, containing the following:

      {
        "MyID": {
          "JwtSigner": {
              "ContainerName": "MyIDAuth JWT Signer",
              "GenerateKey": true,
              "Thumbprint": "<certificate thumbprint>"
                }
              }
      }

      If the appsettings.Production.json file already exists, add the MyID:JwtSigner information to the existing file.

      Replace <certificate thumbprint> with the thumbprint of the certificate you generated above.

    5. Reset the web server:

      1. On the MyID web server, in Internet Information Services (IIS) Manager, select Application Pools.
      2. Right-click the myid.rest.core.pool application pool, then from the pop-up menu click Recycle.
      3. Right-click the myid.web.oauth2.pool application pool, then from the pop-up menu click Recycle.

Now all instances of the web.oauth2 service on different servers are using the same JWT signing key. This means that the MyID Operator Client (or any other client) can authenticate to the web.oauth2 service on any web server (that is, determined by load balancing) and can then call the rest.core web service on any web server (determined by load balancing).

Note: In this configuration, a client must still use the same web.oauth2 instance for the duration of the authentication process, as the cookies used by web.oauth2 by default are tied to an instance.

8.4.6 Translating the MyID Operator Client

For information about translating the MyID interface, contact customer support quoting reference SUP-138.

8.4.7 Setting the location of MyID Desktop

The MyID Operator Client can launch workflows in MyID Desktop to carry out operations that are not provided by the MyID Operator Client itself; for example, resetting PINs. By default, the MyID Client Service assumes that MyID Desktop has been installed to the default location:

C:\Program Files (x86)\Intercede\MyIDDesktop\

If you attempt to use a MyID Desktop workflow and the MyID Client service cannot find the application, an error similar to the following appears:

OC10008 – Unable to launch the Desktop Application. Please check configuration and try again.

If this occurs, you can edit the MyID Client Service configuration file and provide the location of MyID Desktop.

  1. Open the MyIDClientService.dll.config file in a text editor.

    This file is located in the MyID Client Service program folder. By default, this is:

    C:\Program Files (x86)\Intercede\MyIDClientService

  2. Add the following line to the appSettings section:

    <add key="DskPath" value="C:<Desktop install folder>\MyIDDesktop.exe"/>

    where <Desktop install folder> is the folder where you have installed MyID Desktop.

    For example:

    <add key="DskPath" value="C:\Intercede\MyIDDesktop\MyIDDesktop.exe"/>

  3. Save the configuration file.

8.4.8 Signature validation

The MyID Client Service performs signature validation of MyID Desktop before it launches the application to ensure that all components are properly signed by Intercede and have not been tampered with. These checks are performed using the native Windows APIs, and may require the client to connect to the Internet to retrieve the latest Certificate Revocation Lists (CRLs) for revocation checks of the Intercede signing certificate. If the client is permanently running in an isolated environment without access to the Internet, the CRLs cannot be retrieved, which can cause signature verification to fail.

You can disable these checks by editing the MyID Client Service configuration file.

  1. Open the MyIDClientService.dll.config file in a text editor.

    This file is located in the MyID Client Service program folder. By default, this is:

    C:\Program Files (x86)\Intercede\MyIDClientService

  2. Add the following line to the appSettings section:

    <add key="ComponentVerificationSkipRevocationChecks" value="true"/>

  3. Save the configuration file.

8.4.9 Fast user switching

The MyID Client Service must bind to a WebSocket port that the MyID Operator Client is aware of, but only one instance can be bound to a port at a time. By default, if the MyID Client Service detects that the current user's session is being locked, it shuts down any running MyID Client Service applets (for example, the Select Security Device pop-up window, or the MyID Document Scanner) and unbinds from the WebSocket port to allow it to be consumed in another session.

When the MyID Client Service detects the session being unlocked, it rebinds to the WebSocket port.

This allows you to use the fast user switching feature of Windows.

Note. however, that if a MyID Desktop workflow has been launched by the MyID Operator Client, the Desktop instance remains open so the workflow can be completed, although the Operator Client will not receive feedback as it becomes disconnected when the MyID Client Service unbinds from the WebSocket port.

If you do not want your MyID Client Service pop-up windows to close when you lock your workstation, you can edit the MyID Client Service configuration file.

  1. Open the MyIDClientService.dll.config file in a text editor.

    This file is located in the MyID Client Service program folder. By default, this is:

    C:\Program Files (x86)\Intercede\MyIDClientService

  2. Set the SupportFastUserSwitching line in the appSettings section to false:

    <add key="SupportFastUserSwitching" value="false"/>

    If this line does not exist in the configuration file, you can add it to the appSettings section.

  3. Save the configuration file.

Important: When this option is set to false, if you use the Fast User Switching feature in Windows to switch to another user account while the MyID Client Service is already running means the second login cannot launch the MyID Client Service because the port has already been consumed.